package com.slingshot.identitylibrary

import android.graphics.Bitmap
import com.slingshot.identitylibrary.util.SlingshotBitmapUtil
import com.slingshot.identitylibrary.util.SlingshotFileUtil
import java.io.File

/**
 * @author liu shuai
 * 描述：工具类
 */
object SlingshotUtil {

    @JvmStatic
    fun bitmapToBase64(bitmap: Bitmap?): String {
        return SlingshotBitmapUtil.bitmapToBase64(bitmap)
    }

    @JvmStatic
    fun fileToBase64(file: File): String {
        return SlingshotFileUtil.fileToBase64(file)
    }
}